package work.month07.day01;

import java.io.File;
import java.nio.file.Path;

/**
 * @date 2020/07/01
 * @author 王光浩
 * @introduction 文件复制
 */
public class Test {

	public static void main(String[] args) {
		File src = new File("D:/bizi1.png");
		File dst = new File("D:/bizi2.png");	
		
		try {
			FileCopyHelper.copy(src, dst);
		} catch (IllegalAccessException e) {
			e.printStackTrace();
		}
		Path src1 = Path.of("D:/bizi1.png");
		Path dst1 = Path.of("D:/bizi2.png");
		try {
			FileCopyHelper.copy(src1, dst1);
		} catch (IllegalAccessException e) {
			e.printStackTrace();
		}
	}
	
}
